package com.lsh.oms.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.google.common.collect.ImmutableMap;
import com.lsh.oms.api.IAboutRestService;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.Map;

@Path("about")
@Service(protocol = "rest", timeout = 30000)
public class AboutRestServiceImpl implements IAboutRestService {

    @GET
    @Produces({MediaType.APPLICATION_JSON})
    @Override
    public Map<String, String> about() {
        return ImmutableMap.of("name", "oms-provider");
    }
}
